#！/usr/bin/python3
# _*_ coding:UTF-8 _*_

import pickle

try:
	d = dict(name='xiao zhi小明', num=2001)
	f_name = open('./dump.txt', 'wb')
	pickle.dump(d, f_name)
	f_name.close()
	f_name2 = open('./dump.txt','rb')
	print(pickle.load(f_name2))
except Exception as e:
	print(e)
finally:
	
	f_name2.close()